<template>
  <van-swipe :autoplay="3000" lazy-render class="my-swiper">
    <van-swipe-item v-for="(item, index) in list" :key="index">
      <img :src="item.carouselUrl" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  setup() {},
  props: {
    list: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style lang='less'>
.my-swiper {
  img {
    width: 100%;
    height: 100%;
  }
}
</style>